/*
 * Written by Rossi Kamal
 * Date 2011.01.06
 * 
 */

package net.m2m.policycompiler.smartdevice.smartphone.translation;




import java.beans.XMLEncoder;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;


public class Smartphone3GTranslate  {
	public static void main(String[] args) {
		try {

			
			Smartphone3G mySmart3G = new Smartphone3G();
			mySmart3G.setM2MDeviceNameName("SmartPhone");
			mySmart3G.setM2MServiceName("3G");
			mySmart3G.setBandwidth(10);
			
			
			XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
					new FileOutputStream("/home/Siddiqui/workspace/M2M/policy_xml/smartdevice/smartphone/3g/Smart3G.xml")));
			encoder.writeObject(mySmart3G);
			encoder.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}